package service.impl;

import exception.SomeException;
import org.springframework.stereotype.Service;
import service.SomeService;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/18 15:50
 * Version:1.0-SNAPSHOT
 * Description:
 */
@Service
public class SomeServiceImpl implements SomeService {
    @Override
    public String doSome() {
        System.out.println("SomeServiceImpl.doSome");
        return "doSome";
    }

    @Override
    public void doOther() throws SomeException {
        System.out.println("SomeServiceImpl.doOther");
        throw new SomeException("执行doOther遇到了异常");
    }
}
